package test;


import edu.princeton.cs.algs4.In;
import edu.princeton.cs.algs4.Out;


/**
 * @功能
 * @创建时间 2020/5/30
 */
public class Read {
    public static void main(String[] args) {
  //      String s = "Let's go for lunch";
 //       In in = new In("Se");
    //    String[] w = {"1","2","3"};
        Out out = new Out(args[args.length-1]);

        System.out.println(args[args.length-1]);
        for(int i=0;i<args.length-1;i++){
             In in = new In(args[i]);
             String s = in.readAll();
            System.out.println(s);
             out.println(s);
             In w = new In(args[2]);
             String e = w.readAll();
            System.out.println(e);
            System.out.println(out);
             in.close();
        }
        out.close();

    }
}
